import 'package:flutter/material.dart';
import 'package:qgchat/http/apis/video.dart';
import 'package:qgchat/http/models/giftlistModel.dart';

class GlobalState with ChangeNotifier {
  /// 礼物列表
  List<GiftlistModel> giftList;

  /// 礼物列表
  getGiftList(val) async {
    giftList = await VideoApis.giftlist();
    notifyListeners();
  }

  // -----------------------

  /// 获取的礼物列表
  List receivedGift = [];

  /// 获取的礼物列表
  getReceivedGift(val) {
    receivedGift = val;
    notifyListeners();
  }
}